#
# "@(#) $Id: LsongsPaths.py,v 1.1.1.1 2006-07-27 03:16:08 gioshe Exp $"
#
# This work is released under the GNU GPL, version 2 or later.
#
import os

_basePath = None

def basePath():
	global _basePath
	if _basePath==None:
		(_basePath,file) = os.path.split(os.sys.argv[0])
		if len(_basePath)==0:
			_basePath = '.'
	return _basePath

_imagePath = None

def art(name):
	global _imagePath
	if _imagePath==None:
		_imagePath = os.path.join(os.path.abspath('.'),'images')
		#_imagePath = os.path.join(basePath(),'images')
	return os.path.join(_imagePath,name)

def radio(name):
	return os.path.join(basePath(),name)

def script(name):
	return os.path.join(basePath(),name)

def library(name):
	return os.path.join(os.getenv("HOME"),'.8traK',name)

	
	

